const path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}
const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  publicPath: '/',
  outputDir: 'dist',
  assetsDir: 'static',
  transpileDependencies: true,
  lintOnSave:false,
  devServer: {
      client: {
        overlay: false
      }
    },
  //解决报错 点击展示图片报错
    chainWebpack: (config) => {
      config.resolve.alias.set('@', resolve('src')).set('vue', resolve('./node_modules/vue'))
    }
})
